from PyQt4.QtGui import QPalette, QColor, QIcon,  QBrush, QListWidgetItem

class OmaListWidgetItem(QListWidgetItem):
    def __init__(self, text):
        super(OmaListWidgetItem, self).__init__(text)

    def set_savesuccess(self):
        self.setBackground(QBrush(QColor("palegreen")))


    def set_newpage(self):
        self.setBackground(QBrush(QColor("pink")))


class LatausListWidgetItem(QListWidgetItem):
    def __init__(self):
        text = "..."
        super(LatausListWidgetItem, self).__init__(text)
        self.setBackground(QBrush(QColor("cyan")))
